<?php
namespace app\admin\controller;


/**
 * @name 用户管理
 * @desc 用户管理
 * @auth true
 * @author: xujianping(814876569@qq.com)
 * @datetime: 2017/9/18 上午 10:37
 */
class User extends Common
{
    /**
     * index
     * @author: xujianping(814876569@qq.com)
     * @return mixed
     */
    public function index(){

        $user = new \app\common\models\User();
        $list = $user->getPageData();

        $this->assign('list',$list);
        return $this->fetch();
    }

    /**
     * add
     * @author: xujianping(814876569@qq.com)
     * @return mixed
     */
    public function add(){
        if ($this->request->isPost()){

        }else{
            return $this->fetch();
        }
    }
}